package com.xiaoma.base.innerclass;

/**
 * @author xiaomacdut
 * @date 2020年3月21日 下午12:22:31
 */
public class Human{
    
    private static final int eyes = 2;
    
    private static void count(){
        System.out.println("I can count number");
        }
    
    private int teeth = 10;
    
    private void say(){
        System.out.println("Hello world");
    }
    
    /**
     * 人腿 - 非静态内部类
     */
    public class HumanLeg{
        
        private Double length;
        
        public HumanLeg(Double length){
            this.length = length;
        }
        
        public void test(){
            say();
            count();
            System.out.println("I have " + eyes + " eyes");
            System.out.println("I have " + teeth + " teeth");
            System.out.println("My leg has " + length.toString() + "cm long");
        }
    }
    
    
}
